﻿@model AP.Framework.Infrastructure.Entities.cms_Product
@{
    Layout = "~/Views/Shared/_Web960Layout.cshtml";
}
@using AP.Framework.Infrastructure.Repositories
@using AP.Framework.Infrastructure.Database
@{
    ApContext context = new ApContext();
    ProductCategoryRepository productCategory = new ProductCategoryRepository(context);
    var productCategoryList = productCategory.GetAll().OrderBy(p => p.Sequence).ToList();
}
@{
    ViewBag.Title = "产品展示";
    Layout = "~/Views/Shared/_Web960Layout.cshtml";
}
<div class="grid_5">
    <div class="index-sider">
        <div class="section-wrap index-news">
            <div class="section-title section-mark">
                <em style="color: #1EA4E3">产品列表</em></div>
            <div class="section-content">
                <ul class="links-list">
                    @{
                        foreach (var list in productCategoryList)
                        {                   
                        <li><a href="@Url.Action("Index", "Product", new { area = "", productCategoryId = list.ID })" class="title">@list.Name</a>
                            <span class="time">&gt;&gt;</span></li>
                        }                    
                    }
                </ul>
            </div>
        </div>
        @Html.Partial("_ContactPartial")
    </div>
</div>
<!-- end .grid_1 -->
<div class="grid_11">
    <div class="index-main">
        <div class="section-wrap index-service">
            <div class="section-title section-mark clearfix">
                <em style="color: #1EA4E3">产品详细信息</em>
            </div>
            <div class="section-content">
                <table style="width: 100%; line-height: 30px; font-size: 13px;">
                    <tr>
                        <td rowspan="2" style="width: 40%; height: 40%">
                            <img style="padding: 5px" src="@Model.PhotoLarge" alt="" />
                        </td>
                        <td>
                            <span style="color: #1EA4E3">产品名称:@Model.Name</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <h3>
                                产品描述：</h3>
                            @Html.Raw(Model.Description)
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
<!-- end .grid_15 -->
<div class="clear">
</div>
